{template 'header', $module}
<div class="main-block bd-gray mt10">
	<div class="hd fn-clear">
		<h2 class="fn-left">行业圈</h2>
	</div>
	<form method="post" class="form" action="{url('member/industry')}" id="pub-form">
	<div id="industry" class='root' title="行业圈">
		<table class="data-form c666 mt10">
			<tr>
				<th width="90">加入分类：</th>
				<td width="450">
					{loop $ITYPES $k $v}
					    <span class="fn-left nowrap"><input id="indus_{$k}" class="nobd fn-left mr5 mt5" type="checkbox" name="post[icats][]" value="{$v['typeid']}" {if in_array($v['typeid'], $icats)} checked="checked" {/if}/>
                        <label for="indus_{$k}" class="fn-left mr10 mt5">{$v['typename']}</label></span>
					{/loop}
				</td>
			</tr>
			<tr>
				<th width="90"><span class="cred">*</span>企业名称：</th>
				<td class="tr"><input name="post[icompany]" id="icompany" value="{$icompany}"class="graybd-ipt easyui-validatebox" data-options="required:true,missingMessage:'请填写企业名称'"></td>
			</tr>
			<tr>
				<th width="90"><span class="cred">*</span>就职部门：</th>
				<td class="tr"><input type="text" size="20" name="post[idepartment]" id="department" class="graybd-ipt easyui-validatebox" data-options="required:true,missingMessage:'请填写就职部门'" value="{$idepartment}"/></td>
			</tr>
			<tr>
				<th width="90"><span class="cred">*</span>职位：</th>
				<td class="tr"><input type="text" size="20" name="post[icareer]" id="career"  value="{$icareer}"/></td>
			</tr>
			<tr>
				<th width="90">我要买：</th>
				<td class="tr"><textarea type="text" name="post[ibuy]" id="ibuy">{$ibuy}</textarea></td>
			</tr>
			<tr>
				<th width="90">我要卖：</th>
				<td class="tr"><textarea type="text" name="post[isell]" id="isell">{$isell}</textarea></td>
			</tr>
		</table>
	</div>
		<div class="con pl105 fn-clear">
			<button type="submit" class="fn-left mr20 btn">保 存</button>
			<button type="button" class="btn" onclick="history.back(-1);">返回</button>
		</div>
</form>
<script type="text/javascript">
    seajs.use(['member'], function(member){
	    $('#pub-form').on('submit', function(){
		    return $('#pub-form').form('validate');
	    });
    });
</script>
</div>
{template 'footer', $module}